package com.springboot.cloud.demos.entity.po;


import com.baomidou.mybatisplus.annotation.TableName;
import com.springboot.cloud.common.web.entity.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_coupon")
public class Coupon extends BasePo {

    private String title;        // 用户id
    private String levelId;
    private String type = "1";
    private BigDecimal withAmount;//满多少
    private BigDecimal usedAmount;//减多少
    private Integer quota;//发型量
    private Integer takeCount;//领取量
    private Integer usedCount;//使用量
    private Date validStartTime;//开始使用时间
    private Date validEndTime;//结束使用时间

}
